package com.ibeeking.found.cop.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName  MsgMessageTaskDO
 * @Description 客户群群发记录表
 * @Author ibeeking
 * @Date 2021-01-15 10:44
 **/
@Data
@TableName("msg_message_task")
public class MsgMessageTaskDO implements Serializable {
    private static final long serialVersionUID = -1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 任务id
     */
    @TableField(value = "task_id")
    private Long taskId;
    /**
     * 消息id
     */
    @TableField(value = "message_id")
    private Long messageId;

    /**
     * single=发送给客户，group=发送给客户群
     */
    @TableField(value = "chat_type")
    private String chatType;

    /**
     * 企微返回的MsgId
     */
    @TableField(value = "rtn_msg_id")
    private String rtnMsgId;

    /**
     * 发送人Id
     */
    @TableField(value = "sender_id")
    private Long senderId;

    /**
     * 发送人code
     */
    @TableField(value = "sender_code")
    private String senderCode;

    /**
     * 发送时间，1=立即发送；2=定时发送
     */
    @TableField(value = "send_way")
    private Integer sendWay;
    /**
     * 备注
     */
    @TableField(value = "send_time")
    private LocalDateTime sendTime;
    /**
     * 计划发送人清单清单
     */
    @TableField(value = "total_sender_list")
    private String totalSenderList;
    /**
     * 有效的发送人清单清单
     */
    @TableField(value = "valid_sender_list")
    private String validSenderList;
    /**
     * 无效的发送人清单清单
     */
    @TableField(value = "invalid_sender_list")
    private String invalidSenderList;
    /**
     * 计划发送的客户/群id清单
     */
    @TableField(value = "total_friends_list")
    private String totalFriendsList;
    /**
     * 有效的客户/群id清单
     */
    @TableField(value = "valid_friends_list")
    private String validFriendsList;
    /**
     * 无效的客户/群id清单
     */
    @TableField(value = "invalid_friends_list")
    private String invalidFriendsList;
    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
}
